package me.helllp.dake.sample2;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RefreshScope
public class ConsumerController {
    @Autowired
    private TestService testService;

    @PostMapping("/test")
    public String test(){
        return testService.test();
    }
}
